<?php /* SVN: $Id: $ */ ?>

<div class="affiliateWidgetSizes form">
<?php echo $form->create('AffiliateWidgetSize', array('class' => 'normal', 'action'=>'edit','enctype' => 'multipart/form-data'));?>
	<fieldset>
 			<h2><?php echo __l('Edit Affiliate Widget Size');?></h2>
	<?php
		echo $form->input('id');
		echo $form->input('name');
		echo $form->input('content', array('label' => __l('content'),'type' =>'textarea'));
		echo $form->input('width');
		echo $form->input('height');
		echo $form->input('is_display_side_deal',array('label' => 'Display Side Deal?'));
	     if(!empty($this->data['Attachment']['id'])):
		  echo $form->input('Attachment.id',array('type' => 'hidden', 'value' => $this->data['Attachment']['id']));
		  echo $html->showImage('AffiliateWidgetSize', $this->data['Attachment'], array('dimension' => 'original', 'alt' => sprintf(__l('[Image: %s]'), $html->cText($this->data['AffiliateWidgetSize']['name'], false)), 'title' => $html->cText($this->data['AffiliateWidgetSize']['name'], false)));
	    endif;
		echo $form->input('Attachment.filename', array('type' => 'file', 'label' => __l('Widget Logo')));
	?>
	</fieldset>
 <div class="submit-block clearfix">
    <?php echo $form->submit(__l('Update'));?>
    </div>
    <?php echo $form->end();?>
</div>
